powered by
"units"(x) <- value
units
x = 1:3 class(x) units(x) <- with(ud_units, m/s) # valid class(x) y = 2:5
Run the code above in your browser using DataLab